#ifndef _PRINTNODE_H_
#define _PRINTNODE_H_

#include "StatNode.h"
#include "ExprNode.h"

class PrintNode : public StatNode {
protected:
    ExprNode *value;
public:
    PrintNode(Token *token, ExprNode *value): StatNode(token), value(value) { }
    void print() {
        cout << "print ";
        value->print();
        cout << endl;
    }
};

#endif
